<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>form表单与input输入框的运用 | Introduction</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../First/HTML/example8.html" />
    
    
    <link rel="prev" href="../../First/HTML/example6.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="1.7"
        data-chapter-title="form表单与input输入框的运用"
        data-filepath="First/HTML/example7.md"
        data-basepath="../.."
        data-revision="Fri Sep 01 2017 15:03:43 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="First/HTML/html1.html">
            
                
                    <a href="../../First/HTML/html1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        HTML5
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="First/HTML/example1.html">
            
                
                    <a href="../../First/HTML/example1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        列表之间的同素异性体
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="First/HTML/example2.html">
            
                
                    <a href="../../First/HTML/example2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        常用标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="First/HTML/example3.html">
            
                
                    <a href="../../First/HTML/example3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        a标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="First/HTML/example4.html">
            
                
                    <a href="../../First/HTML/example4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        HTML5新增加的标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="First/HTML/example5.html">
            
                
                    <a href="../../First/HTML/example5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        实体字符和文本格式化
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="First/HTML/example6.html">
            
                
                    <a href="../../First/HTML/example6.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        table标签
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="1.7" data-path="First/HTML/example7.html">
            
                
                    <a href="../../First/HTML/example7.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        form表单与input输入框的运用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="First/HTML/example8.html">
            
                
                    <a href="../../First/HTML/example8.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.</b>
                        
                        块级元素与内联元素的往事
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="First/HTML/example9.html">
            
                
                    <a href="../../First/HTML/example9.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.9.</b>
                        
                        零碎小知识
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="First/HTML/example10.html">
            
                
                    <a href="../../First/HTML/example10.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.10.</b>
                        
                        图像热区与内嵌框架iframe的趣事
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="First/HTML/content.html">
            
                
                    <a href="../../First/HTML/content.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.11.</b>
                        
                        HTML5心得和总结
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="First/CSS/css1.html">
            
                
                    <a href="../../First/CSS/css1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        CSS3
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="First/CSS/css.html">
            
                
                    <a href="../../First/CSS/css.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        CSS选择器
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="First/CSS/通配选择器.html">
            
                
                    <a href="../../First/CSS/通配选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.1.</b>
                        
                        通配选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="First/CSS/元素选择器.html">
            
                
                    <a href="../../First/CSS/元素选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.2.</b>
                        
                        元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="First/CSS/class选择器和id选择器.html">
            
                
                    <a href="../../First/CSS/class选择器和id选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.3.</b>
                        
                        class选择器和id选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="First/CSS/关系选择器.html">
            
                
                    <a href="../../First/CSS/关系选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.4.</b>
                        
                        关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="First/CSS/群组选择器.html">
            
                
                    <a href="../../First/CSS/群组选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.5.</b>
                        
                        群组选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="First/CSS/伪类选择器.html">
            
                
                    <a href="../../First/CSS/伪类选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.6.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.7" data-path="First/CSS/属性选择器.html">
            
                
                    <a href="../../First/CSS/属性选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.7.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.8" data-path="First/CSS/伪对象选择器.html">
            
                
                    <a href="../../First/CSS/伪对象选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.8.</b>
                        
                        伪对象选择器
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="First/CSS/样式.html">
            
                
                    <a href="../../First/CSS/样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        CSS样式分类
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="First/CSS/字体样式.html">
            
                
                    <a href="../../First/CSS/字体样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.1.</b>
                        
                        字体样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="First/CSS/边框样式.html">
            
                
                    <a href="../../First/CSS/边框样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.2.</b>
                        
                        边框样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="First/CSS/背景样式.html">
            
                
                    <a href="../../First/CSS/背景样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.3.</b>
                        
                        背景样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="First/CSS/元素样式.html">
            
                
                    <a href="../../First/CSS/元素样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.4.</b>
                        
                        元素样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="First/CSS/段落样式.html">
            
                
                    <a href="../../First/CSS/段落样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.5.</b>
                        
                        段落样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.6" data-path="First/CSS/浮动.html">
            
                
                    <a href="../../First/CSS/浮动.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.6.</b>
                        
                        浮动
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.7" data-path="First/CSS/网页常见定位.html">
            
                
                    <a href="../../First/CSS/网页常见定位.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.7.</b>
                        
                        网页常见定位
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.8" data-path="First/CSS/盒子模型.html">
            
                
                    <a href="../../First/CSS/盒子模型.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.8.</b>
                        
                        盒子模型
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="First/CSS/SCSS预处理.html">
            
                
                    <a href="../../First/CSS/SCSS预处理.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        sass预处理用法
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="First/CSS/animate常见用法.html">
            
                
                    <a href="../../First/CSS/animate常见用法.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        animate动画
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="First/CSS/媒体查询.html">
            
                
                    <a href="../../First/CSS/媒体查询.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        媒体查询
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="First/CSS/Bootstrap框架栅格化系统.html">
            
                
                    <a href="../../First/CSS/Bootstrap框架栅格化系统.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.6.</b>
                        
                        Bootstrap框架栅格化系统
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="First/CSS/flexbox弹性盒子.html">
            
                
                    <a href="../../First/CSS/flexbox弹性盒子.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.</b>
                        
                        flexbox弹性盒子
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >Introduction</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="form&#x8868;&#x5355;&#x4E0E;input&#x8F93;&#x5165;&#x6846;&#x7684;&#x8FD0;&#x7528;">form&#x8868;&#x5355;&#x4E0E;input&#x8F93;&#x5165;&#x6846;&#x7684;&#x8FD0;&#x7528;</h1>
<h2 id="form&#x8868;&#x5355;&#x8FD0;&#x7528;">form&#x8868;&#x5355;&#x8FD0;&#x7528;</h2>
<h4 id="&#x5E38;&#x89C4;&#x5199;&#x6CD5;">&#x5E38;&#x89C4;&#x5199;&#x6CD5;</h4>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">form</span> <span class="hljs-attribute">action</span>=<span class="hljs-value">&quot;tijiao.html&quot;</span> <span class="hljs-attribute">method</span>=<span class="hljs-value">&quot;get&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-title">form</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">form</span> <span class="hljs-attribute">action</span>=<span class="hljs-value">&quot;aaa.php&quot;</span> <span class="hljs-attribute">method</span>=<span class="hljs-value">&quot;post&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-title">form</span>&gt;</span>
</code></pre>
<blockquote>
<p>&#x6CE8;&#x91CA;</p>
<ul>
<li>&#x63D0;&#x4EA4;&#x7684;&#x5185;&#x5BB9;&#x5305;&#x88F9;&#x5728;form&#x8868;&#x5355;&#x4E2D;</li>
<li>action <strong>&#x63D0;&#x4EA4;&#x7684;&#x5730;&#x5740;</strong>(&#x6269;&#x5C55;:&#x53EF;&#x4EE5;&#x662F;jsp,asp,php&#x7B49;&#x540E;&#x7AEF;&#x6570;&#x636E;&#x6587;&#x4EF6;,&#x4E5F;&#x53EF;&#x4EE5;&#x63D0;&#x4EA4;&#x5230;&#x53E6;&#x4E00;&#x4E2A;html&#x4E2D;)</li>
<li>method <strong>&#x63D0;&#x4EA4;&#x65B9;&#x5F0F;</strong>  &#x4E3B;&#x8981;&#x6709;get(<strong>&#x9ED8;&#x8BA4;</strong>) &#x548C; post</li>
<li>target <strong>&#x6253;&#x5F00;&#x65B9;&#x5F0F;</strong> &#x4E3B;&#x8981;&#x5C5E;&#x6027;&#x503C;&#x6709;:<strong>_blank</strong> &#x65B0;&#x6253;&#x5F00;&#x7A97;&#x53E3;,<strong>_self(&#x9ED8;&#x8BA4;)</strong> &#x5F53;&#x524D;&#x7A97;&#x53E3;&#x5237;&#x65B0;,<strong>framename</strong> &#x5728;&#x6307;&#x5B9A;&#x6846;&#x67B6;&#x4E2D;&#x6253;&#x5F00;(ps.target&#x6307;&#x7684;&#x662F;&#x5728;&#x4F55;&#x5904;&#x6253;&#x5F00;action&#x7684;url)</li>
</ul>
<p>&#x7279;&#x70B9;</p>
<ul>
<li>get&#x7684;&#x7279;&#x70B9;:  <strong>&#x5B89;&#x5168;&#x6027;&#x4F4E;</strong>,&#x4F1A;&#x628A;&#x8F93;&#x5165;&#x7684;&#x6570;&#x636E;&#x4F1A;&#x62FC;&#x63A5;&#x5230;&#x7F51;&#x9875;&#x7684;url&#x4E0A;(<strong>url&#x6539;&#x53D8;</strong>)&#xFF0C;&#x4EE5;?&#x9694;&#x5F00;&#xFF0C;&#x4EE5;&amp;&#x62FC;&#x63A5;&#x4E0D;&#x540C;&#x7684;&#x8F93;&#x5165;&#x7684;&#x6570;&#x636E;</li>
<li>post&#x7684;&#x7279;&#x70B9;: <strong>&#x5B89;&#x5168;&#x6027;&#x9AD8;</strong>,&#x5728;url&#x4E0A;&#x6CA1;&#x6709;&#x4EFB;&#x4F55;&#x8868;&#x5355;&#x4FE1;&#x606F;(<strong>url&#x4E0D;&#x6539;&#x53D8;</strong>),&#x5E76;&#x4E14;&#x9700;&#x8981;&#x7528;&#x670D;&#x52A1;&#x5668;&#x63A5;&#x6536;.&#x6570;&#x636E;&#x9690;&#x853D;.</li>
</ul>
<p>get&#x548C;post&#x7684;&#x5BF9;&#x6BD4;</p>
<ul>
<li>get  &#x6570;&#x636E;&#x662F;&#x88F8;&#x9732;&#x7684;&#xFF0C;&#x5B89;&#x5168;&#x6027;&#x8F83;&#x4F4E;,&#x4E13;&#x95E8;&#x7528;&#x4E8E;&#x4F20;&#x8F93;&#x6570;&#x636E;&#x91CF;&#x5C0F;&#x7684;&#x5185;&#x5BB9;</li>
<li>post &#x4E13;&#x95E8;&#x7528;&#x4E8E;&#x4F20;&#x8F93;&#x6570;&#x636E;&#x91CF;&#x5927;&#x7684;&#x5185;&#x5BB9;(ps.&#x767B;&#x5F55;&#x6CE8;&#x518C;&#x4FE1;&#x606F;,&#x94F6;&#x884C;&#x5361;&#x5BC6;&#x7801;&#x548C;&#x4EA4;&#x6613;&#x5BC6;&#x7801;)</li>
</ul>
<p>get&#x548C;post&#x7684;&#x6269;&#x5C55;</p>
<ul>
<li>get&#x65B9;&#x5F0F;&#x63D0;&#x4EA4;&#x7684;&#x6570;&#x636E;&#x6709;<strong>&#x5B57;&#x7B26;&#x9650;&#x5236;</strong>,&#x800C;post&#x65B9;&#x5F0F;&#x63D0;&#x4EA4;&#x7684;&#x6570;&#x636E;<strong>&#x6CA1;&#x6709;&#x5B57;&#x7B26;&#x9650;&#x5236;</strong></li>
<li>get&#x9650;&#x5236;Form&#x8868;&#x5355;&#x7684;&#x6570;&#x636E;&#x96C6;&#x7684;&#x503C;&#x5FC5;&#x987B;&#x4E3A;<strong>ASCII&#x5B57;&#x7B26;</strong>&#xFF1B;&#x800C;Post&#x652F;&#x6301;<strong>&#x6574;&#x4E2A;ISO10646&#x5B57;&#x7B26;&#x96C6;</strong>&#x3002;</li>
<li>&#x5BF9;&#x4E8E;get&#x65B9;&#x5F0F;&#xFF0C;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x7528;<strong>Request.QueryString&#x83B7;&#x53D6;</strong>&#x53D8;&#x91CF;&#x7684;&#x503C;&#xFF0C;&#x5BF9;&#x4E8E;post&#x65B9;&#x5F0F;&#xFF0C;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x7528;<strong>Request.Form&#x83B7;&#x53D6;</strong>&#x63D0;&#x4EA4;&#x7684;&#x6570;&#x636E;&#x3002;</li>
<li>get&#x662F;&#x4ECE;&#x670D;&#x52A1;&#x5668;&#x4E0A;<strong>&#x83B7;&#x53D6;&#x6570;&#x636E;</strong>&#xFF0C;post&#x662F;&#x5411;&#x670D;&#x52A1;&#x5668;<strong>&#x4F20;&#x9001;&#x6570;&#x636E;</strong>&#x3002; </li>
</ul>
</blockquote>
<h2 id="input&#x8F93;&#x5165;&#x6846;&#x7684;&#x7528;&#x6CD5;">input&#x8F93;&#x5165;&#x6846;&#x7684;&#x7528;&#x6CD5;</h2>
<h4 id="input&#x6807;&#x7B7E;&#x7684;&#x5C5E;&#x6027;">input&#x6807;&#x7B7E;&#x7684;&#x5C5E;&#x6027;</h4>
<table>
<thead>
<tr>
<th style="text-align:center">&#x5C5E;&#x6027;</th>
<th style="text-align:center">&#x8BF4;&#x660E;</th>
<th style="text-align:center">&#x5C5E;&#x6027;</th>
<th style="text-align:center">&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">type</td>
<td style="text-align:center">input&#x5143;&#x7D20;&#x7C7B;&#x578B;</td>
<td style="text-align:center">readonly</td>
<td style="text-align:center">&#x662F;&#x5426;&#x53EA;&#x8BFB;</td>
</tr>
<tr>
<td style="text-align:center">name</td>
<td style="text-align:center">input&#x5143;&#x7D20;&#x7684;&#x540D;&#x79F0;</td>
<td style="text-align:center">maxlength</td>
<td style="text-align:center">&#x8F93;&#x5165;&#x5B57;&#x7B26;&#x7684;&#x6700;&#x5927;&#x957F;&#x5EA6;</td>
</tr>
<tr>
<td style="text-align:center">value</td>
<td style="text-align:center">input&#x5143;&#x7D20;&#x7684;&#x503C;</td>
<td style="text-align:center">disabled</td>
<td style="text-align:center">&#x662F;&#x5426;&#x7981;&#x7528;</td>
</tr>
<tr>
<td style="text-align:center">size</td>
<td style="text-align:center">input&#x5143;&#x7D20;&#x7684;&#x5BBD;&#x5EA6;</td>
<td style="text-align:center">placeholder</td>
<td style="text-align:center">&#x63D0;&#x793A;&#x8BED;</td>
</tr>
</tbody>
</table>
<h4 id="input&#x6807;&#x7B7E;&#x7684;&#x5E38;&#x7528;&#x7C7B;&#x578B;">input&#x6807;&#x7B7E;&#x7684;&#x5E38;&#x7528;&#x7C7B;&#x578B;</h4>
<table>
<thead>
<tr>
<th style="text-align:center">&#x7C7B;&#x578B;(type)</th>
<th style="text-align:center">&#x540D;&#x79F0;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">text</td>
<td style="text-align:center">&#x666E;&#x901A;&#x6587;&#x672C;</td>
</tr>
<tr>
<td style="text-align:center">password</td>
<td style="text-align:center">&#x5BC6;&#x7801;(&#x8F93;&#x5165;&#x4E0D;&#x53EF;&#x89C1;)</td>
</tr>
<tr>
<td style="text-align:center">number</td>
<td style="text-align:center">&#x6570;&#x5B57;(&#x8F93;&#x5165;&#x5185;&#x5BB9;&#x5FC5;&#x987B;&#x662F;&#x6570;&#x5B57;)</td>
</tr>
<tr>
<td style="text-align:center">radio</td>
<td style="text-align:center">&#x5355;&#x9009;(ps.&#x8BB0;&#x5F97;&#x52A0;value&#x548C;name)</td>
</tr>
<tr>
<td style="text-align:center">checkbox</td>
<td style="text-align:center">&#x591A;&#x9009;(ps.&#x8BB0;&#x5F97;&#x52A0;value&#x548C;name)</td>
</tr>
<tr>
<td style="text-align:center">button</td>
<td style="text-align:center">&#x6309;&#x94AE;(ps.&#x8BB0;&#x5F97;&#x52A0;value&#x548C;name)</td>
</tr>
<tr>
<td style="text-align:center">image</td>
<td style="text-align:center">&#x56FE;&#x50CF;&#x6309;&#x94AE;</td>
</tr>
<tr>
<td style="text-align:center">file</td>
<td style="text-align:center">&#x4E0A;&#x4F20;&#x6587;&#x4EF6;(multiple &#x63A7;&#x5236;&#x662F;&#x5426;&#x591A;&#x6587;&#x4EF6;&#x4F20;&#x8F93;  accept=&quot;image/jpg,audio/mp3,video/mp4&quot; &#x53EF;&#x9650;&#x5236;&#x4E0A;&#x4F20;&#x6587;&#x4EF6;&#x7684;&#x7C7B;&#x578B;)</td>
</tr>
<tr>
<td style="text-align:center">hidden</td>
<td style="text-align:center">&#x9690;&#x85CF;</td>
</tr>
</tbody>
</table>
<blockquote>
<p>&#x6CE8;&#x610F;:&#x53EA;&#x8981;&#x4E0D;&#x662F;&#x7528;&#x6237;&#x8F93;&#x5165;&#x7684;&#x503C;&#xFF0C;&#x90FD;&#x8981;&#x7ED9;&#x8BE5;&#x63A7;&#x4EF6;&#x8BBE;&#x4E2A;value&#x548C;name,&#x5BF9;&#x540E;&#x53F0;&#x63D0;&#x4F9B;&#x66F4;&#x597D;&#x7684;&#x64CD;&#x4F5C;</p>
</blockquote>
<h4 id="input&#x6807;&#x7B7E;&#x7684;&#x7279;&#x6B8A;&#x7C7B;&#x578B;&#x548C;&#x7528;&#x6CD5;">input&#x6807;&#x7B7E;&#x7684;&#x7279;&#x6B8A;&#x7C7B;&#x578B;&#x548C;&#x7528;&#x6CD5;</h4>
<table>
<thead>
<tr>
<th style="text-align:center">&#x7C7B;&#x578B;(type)</th>
<th style="text-align:center">&#x7528;&#x6CD5;</th>
<th style="text-align:center">&#x517C;&#x5BB9;&#x6027;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">color</td>
<td style="text-align:center">&#x5B9A;&#x4E49;&#x62FE;&#x8272;&#x5668;</td>
<td style="text-align:center">IE11&#x6D4F;&#x89C8;&#x5668;&#x53CA;&#x4EE5;&#x4E0B;&#x90FD;&#x4E0D;&#x517C;&#x5BB9;,Edge14&#x4EE5;&#x4E0A;&#x90FD;&#x517C;&#x5BB9;,Firefox&#x6D4F;&#x89C8;&#x5668;29&#x4EE5;&#x4E0A;&#x517C;&#x5BB9;,Chrome20&#x6D4F;&#x89C8;&#x5668;&#x4EE5;&#x4E0A;&#x517C;&#x5BB9;,Safari11&#x6D4F;&#x89C8;&#x5668;&#x4EE5;&#x4E0A;&#x652F;&#x6301;,Opera17&#x4EE5;&#x4E0A;&#x517C;&#x5BB9;,iOS Safari&#x90FD;&#x4E0D;&#x652F;&#x6301;&#xFF0C;Android Browser4.4&#x4EE5;&#x4E0A;&#x652F;&#x6301;</td>
</tr>
<tr>
<td style="text-align:center">date</td>
<td style="text-align:center">&#x5B9A;&#x4E49;&#x65E5;&#x671F;&#x5B57;&#x6BB5;(&#x5E26;&#x6709;Calendar&#x63A7;&#x4EF6;)</td>
<td style="text-align:center">&#x517C;&#x5BB9;&#x6027;:IE11&#x6D4F;&#x89C8;&#x5668;&#x53CA;&#x4EE5;&#x4E0B;&#x90FD;&#x4E0D;&#x517C;&#x5BB9;,Edge14&#x4EE5;&#x4E0A;&#x90FD;&#x517C;&#x5BB9;,Firefox&#x6D4F;&#x89C8;&#x5668;56&#x4EE5;&#x4E0A;&#x517C;&#x5BB9;,Chrome20&#x6D4F;&#x89C8;&#x5668;&#x4EE5;&#x4E0A;&#x517C;&#x5BB9;,Safari&#x6D4F;&#x89C8;&#x5668;&#x90FD;&#x4E0D;&#x652F;&#x6301;,Opera&#x6D4F;&#x89C8;&#x5668;&#x90FD;&#x517C;&#x5BB9;,iOS Safari5.1&#x4EE5;&#x4E0A;&#x90E8;&#x5206;&#x652F;&#x6301;&#xFF0C;Android Browser4.4&#x4EE5;&#x4E0A;&#x652F;&#x6301;</td>
</tr>
<tr>
<td style="text-align:center">datetime</td>
<td style="text-align:center">&#x65E2;&#x663E;&#x793A;&#x65E5;&#x671F;&#x7EC4;&#x4EF6;&#xFF0C;&#x53C8;&#x663E;&#x793A;&#x65F6;&#x95F4;&#x7EC4;&#x4EF6;&#xFF0C;&#x5176;&#x5B9E;&#x5C31;&#x662F;&quot;date&quot;&#x7C7B;&#x578B;&#x548C;&quot;time&quot;&#x7C7B;&#x578B;&#x7684;&#x7EC4;&#x5408;</td>
<td style="text-align:center">&#x5DF2;&#x5E9F;&#x5F03;</td>
</tr>
<tr>
<td style="text-align:center">number</td>
<td style="text-align:center">&#x5B9A;&#x4E49;&#x5E26;&#x6709;spinner&#x63A7;&#x4EF6;&#x7684;&#x6570;&#x5B57;&#x5B57;&#x6BB5;</td>
<td style="text-align:center">IE&#x6D4F;&#x89C8;&#x5668;&#x90FD;&#x4E0D;&#x652F;&#x6301;,Edge&#x6D4F;&#x89C8;&#x5668;&#x90FD;&#x652F;&#x6301;,Firefox29&#x4EE5;&#x4E0A;&#x652F;&#x6301;,Chrome6&#x4EE5;&#x4E0A;&#x652F;&#x6301;,Safari5&#x4EE5;&#x4E0A;&#x652F;&#x6301;,Opera&#x90FD;&#x652F;&#x6301;,ios safari3.2&#x4EE5;&#x4E0A;&#x7684;&#x90E8;&#x5206;&#x652F;&#x6301;,Android Browser4&#x4EE5;&#x4E0A;&#x90E8;&#x5206;&#x652F;&#x6301;</td>
</tr>
<tr>
<td style="text-align:center">range</td>
<td style="text-align:center">&#x5B9A;&#x4E49;&#x5E26;&#x6709;slider&#x63A7;&#x4EF6;&#x7684;&#x6570;&#x5B57;&#x5B57;&#x6BB5;(ps.&#x4E00;&#x822C;&#x7528;&#x4E8E;&#x63A7;&#x5236;&#x97F3;&#x91CF;&#x7684;&#x5927;&#x5C0F;)</td>
<td style="text-align:center">IE11&#x53EF;&#x4EE5;&#x517C;&#x5BB9;,Edge&#x90FD;&#x53EF;&#x4EE5;&#x517C;&#x5BB9;,Firefox23&#x4EE5;&#x4E0A;&#x517C;&#x5BB9;,Chrome&#x90FD;&#x652F;&#x6301;,Safari&#x90FD;&#x652F;&#x6301;,Opera&#x90FD;&#x652F;&#x6301;,ios safari5.1&#x4EE5;&#x4E0A;&#x652F;&#x6301;,Android browser2.1-4.1&#x90E8;&#x5206;&#x652F;&#x6301;,4.3&#x4EE5;&#x4E0A;&#x90FD;&#x652F;&#x6301;</td>
</tr>
<tr>
<td style="text-align:center">search</td>
<td style="text-align:center">&#x5B9A;&#x4E49;&#x7528;&#x4E8E;&#x641C;&#x7D22;&#x7684;&#x6587;&#x672C;&#x5B57;&#x6BB5;</td>
<td style="text-align:center">IE10&#x4EE5;&#x4E0A;&#x53EF;&#x4EE5;&#x517C;&#x5BB9;,Edge&#x90FD;&#x53EF;&#x4EE5;&#x517C;&#x5BB9;,Firefox4&#x4EE5;&#x4E0A;&#x517C;&#x5BB9;,Chrome26&#x4EE5;&#x4E0A;&#x90FD;&#x652F;&#x6301;,Safari5.1&#x4EE5;&#x4E0A;&#x90FD;&#x652F;&#x6301;,Opera12.1&#x4EE5;&#x4E0A;&#x90FD;&#x652F;&#x6301;,ios safari5.1&#x4EE5;&#x4E0A;&#x652F;&#x6301;,Android browser2.3&#x4EE5;&#x4E0A;&#x90FD;&#x652F;&#x6301;</td>
</tr>
</tbody>
</table>
<h4 id="select&#x6807;&#x7B7E;">select&#x6807;&#x7B7E;</h4>
<blockquote>
<p>&#x5E38;&#x89C1;&#x7684;&#x7528;&#x6CD5;</p>
</blockquote>
<pre><code class="lang-html">    <span class="hljs-tag">&lt;<span class="hljs-title">select</span> <span class="hljs-attribute">name</span>=<span class="hljs-value">&quot;city&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">optgroup</span> <span class="hljs-attribute">label</span>=<span class="hljs-value">&quot;&#x8457;&#x540D;&#x57CE;&#x5E02;&quot;</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">option</span> <span class="hljs-attribute">value</span>=<span class="hljs-value">&quot;&#x5E7F;&#x5DDE;&quot;</span>&gt;</span>&#x5E7F;&#x5DDE;<span class="hljs-tag">&lt;/<span class="hljs-title">option</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">option</span> <span class="hljs-attribute">value</span>=<span class="hljs-value">&quot;&#x4E0A;&#x6D77;&quot;</span>&gt;</span>&#x4E0A;&#x6D77;<span class="hljs-tag">&lt;/<span class="hljs-title">option</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-title">optgroup</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">select</span>&gt;</span>
</code></pre>
<blockquote>
<p>&#x6CE8;&#x91CA;:</p>
<ul>
<li>multiple  &#x662F;&#x5426;&#x591A;&#x9009;</li>
<li>disabled  &#x662F;&#x5426;&#x7981;&#x7528;</li>
<li>selected  &#x8BBE;&#x7F6E;&#x9ED8;&#x8BA4;&#x9009;&#x4E2D;&#x7684;&#x9009;&#x9879;</li>
<li>value     &#x9009;&#x9879;&#x7684;&#x503C;</li>
<li>label     &#x5728;&#x4E0B;&#x62C9;&#x6846;&#x5185;&#x663E;&#x793A;,&#x4E0D;&#x53EF;&#x9009;</li>
<li>select&#x7684;&#x6700;&#x540E;&#x7ED3;&#x679C;&#x5C31;&#x662F;&#x9009;&#x4E2D;option&#x7684;value</li>
</ul>
</blockquote>
<h4 id="label&#x6807;&#x7B7E;">label&#x6807;&#x7B7E;</h4>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">label</span>&gt;</span>&#x8FD9;&#x662F;label&#x6807;&#x7B7E;<span class="hljs-tag">&lt;/<span class="hljs-title">label</span>&gt;</span>
</code></pre>
<blockquote>
<p>&#x6CE8;&#x610F;:</p>
<ul>
<li>&#x5728;radio&#x548C;checkbox&#x6807;&#x7B7E;&#x4E2D;,&#x53EF;&#x4EE5;&#x7528;label&#x6807;&#x7B7E;&#x4E2D;&#x7684;<strong>for</strong>&#x5C5E;&#x6027;&#x548C;input&#x6807;&#x7B7E;&#x7684;<strong>id</strong>&#x76F8;&#x5339;&#x914D;,&#x914D;&#x5BF9;&#x6210;&#x529F;&#x5219;input&#x6807;&#x7B7E;&#x83B7;&#x5F97;&#x7126;&#x70B9;</li>
</ul>
</blockquote>
<h4 id="textarea&#x6807;&#x7B7E;">textarea&#x6807;&#x7B7E;</h4>
<pre><code class="lang-html">
      <span class="hljs-tag">&lt;<span class="hljs-title">textarea</span> <span class="hljs-attribute">cols</span>=<span class="hljs-value">&quot;10&quot;</span> <span class="hljs-attribute">rows</span>=<span class="hljs-value">&quot;10&quot;</span> <span class="hljs-attribute">placeholder</span>=<span class="hljs-value">&quot;&#x63D0;&#x793A;&#x8BED;&quot;</span>&gt;</span>
          &#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x6587;&#x672C;&#x57DF;

     &amp;lt;/textarea&amp;gt;
</code></pre>
<blockquote>
<p>&#x6CE8;&#x91CA;:</p>
<ul>
<li>cols&#x8868;&#x793A;&#x6587;&#x672C;&#x57DF;&#x7684;&#x5BBD;&#x5EA6;</li>
<li>rows&#x8868;&#x793A;&#x6587;&#x672C;&#x57DF;&#x7684;&#x9AD8;&#x5EA6;</li>
<li>&#x5728;&#x975E;IE&#x6D4F;&#x89C8;&#x5668;&#x4E0B;&#x4F1A;&#x51FA;&#x73B0;&#x53EF;&#x62D6;&#x52A8;&#x5927;&#x5C0F;&#x7684;&#x529F;&#x80FD;&#xFF0C;&#x5982;&#x679C;&#x8981;&#x7981;&#x6B62;&#x5C31;&#x6DFB;&#x52A0;css&#x6837;&#x5F0F;,<strong>resize:none</strong>;</li>
</ul>
</blockquote>
<h4 id="button&#x6807;&#x7B7E;">button&#x6807;&#x7B7E;</h4>
<pre><code class="lang-html">    <span class="hljs-tag">&lt;<span class="hljs-title">button</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;button&quot;</span>&gt;</span>&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x6309;&#x94AE;<span class="hljs-tag">&lt;/<span class="hljs-title">button</span>&gt;</span>
</code></pre>
<blockquote>
<p>&#x4E0D;&#x540C;&#x7684;&#x6D4F;&#x89C8;&#x5668;&#x4F1A;&#x63D0;&#x4EA4;&#x4E0D;&#x540C;&#x7684;&#x503C;</p>
<ul>
<li>IE&#x5C06;&#x63D0;&#x4EA4;<strong>button&#x6807;&#x7B7E;&#x4E4B;&#x95F4;&#x7684;&#x6587;&#x672C;</strong>&#xFF0C;&#x800C;&#x5176;&#x4ED6;&#x6D4F;&#x89C8;&#x5668;&#x5C06;<strong>&#x63D0;&#x4EA4; value &#x5C5E;&#x6027;&#x7684;&#x5185;&#x5BB9;</strong></li>
</ul>
</blockquote>
<h5 id="input&#x7684;&#x6807;&#x7B7E;&#x7684;hidden">input&#x7684;&#x6807;&#x7B7E;&#x7684;hidden</h5>
<blockquote>
<p>&#x8FD8;&#x662F;&#x4F1A;&#x6309;&#x7167;&#x6B63;&#x5E38;&#x7684;&#x6570;&#x636E;&#x8FDB;&#x884C;&#x63D0;&#x4EA4;,&#x53EA;&#x4E0D;&#x8FC7;&#x4E0D;&#x9700;&#x8981;&#x7528;&#x6237;&#x7684;&#x53C2;&#x4E0E;&#x4FEE;&#x6539;&#x800C;&#x5DF2;</p>
</blockquote>
<pre><code class="lang-html">    <span class="hljs-tag">&lt;<span class="hljs-title">input</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;hidden&quot;</span> <span class="hljs-attribute">name</span>=<span class="hljs-value">&quot;ip_address&quot;</span> <span class="hljs-attribute">value</span>=<span class="hljs-value">&quot;127.0.0&quot;</span>/&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">input</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;submit&quot;</span>  <span class="hljs-attribute">value</span>=<span class="hljs-value">&quot;&#x63D0;&#x4EA4;&quot;</span>/&gt;</span>
</code></pre>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../First/HTML/example6.html" class="navigation navigation-prev " aria-label="Previous page: table标签"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../First/HTML/example8.html" class="navigation navigation-next " aria-label="Next page: 块级元素与内联元素的往事"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"expandable-chapters-small":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
